:root {
  --primary-color: #1e88e5;
  --secondary-color: #e3f2fd;
  --accent-color: #00897b;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --border-radius: 4px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.header h2 {
  margin-bottom: 0;
}

.alert {
  background-color: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border-left: 4px solid #ffc107;
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: white;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

select.form-control {
  cursor: pointer;
  padding-right: 30px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-input {
  margin-right: 8px;
  cursor: pointer;
}

.tab-content {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #1565c0;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.btn-success {
  background-color: var(--accent-color);
  color: white;
}

.btn-success:hover {
  background-color: #00695c;
}

.btn i {
  margin-right: 6px;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.divider {
  height: 1px;
  background-color: #eee;
  margin: 20px 0;
}

.img-container {
  margin-top: 20px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 10px;
  overflow: hidden;
}

.img-preview {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.img-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #999;
  font-size: 16px;
}

.result-container {
  margin-top: 20px;
}

.result-box {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: white;
  resize: vertical;
  font-family: monospace;
}

/* Toast 样式 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 10px;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
  max-width: 350px;
}

.toast.success {
  background-color: rgba(46, 125, 50, 0.9);
}

.toast.error {
  background-color: rgba(211, 47, 47, 0.9);
}

.toast.info {
  background-color: rgba(2, 119, 189, 0.9);
}

.toast-icon {
  margin-right: 10px;
  font-size: 20px;
}

.toast-message {
  flex: 1;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-group {
    flex-wrap: wrap;
  }
} 
